package cn.sofwin.blog.service;

import cn.sofwin.blog.entity.User;
import org.apache.ibatis.session.SqlSession;

/**
 * 服务层
 * @author zx
 * @since 1.0
 *
 */
public interface UserService {

    SqlSession getSession();

    User login(String username, String password);

    User register(String username, String password, String nickname);

    User get(Integer id);

    void updateProfile(User user, String password, String nickname, String avatar);
}